filechooserdialog: Be more careful with widgets
authorMatthias Clasen <mclasen@redhat.com>
Mon, 11 May 2020 18:23:58 +0000 (14:23 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 11 May 2020 18:23:58 +0000 (14:23 -0400)
commitea53b445a852ebc4d0c98e5a1d0607a0fcc2a7b3
tree1b9e3a7e8f6109583f964c8690a492fc6de54e99
parentc8a96d08a0724e9cfa67dcfd0421e83ef9809fe0
filechooserdialog: Be more careful with widgets

We were stepping on our own toes, by first setting
up a save entry and telling the filechooserwidget
about it, and then nuking it by setting a title
on the headerbar. The filechooserwidget wasn't
ready for the entry to die without anybody telling
it.

This fixes a crash when using the filechooser for
print-to-file in the print dialog.
gtk/gtkfilechooserdialog.c